import { ALL, Config, Middleware } from '@midwayjs/decorator';
import { NextFunction, Context } from '@midwayjs/koa';
import { IMiddleware, Init, Inject } from '@midwayjs/core';
import * as _ from 'lodash';
import { CoolUrlTagData, RESCODE, TagTypes } from '@cool-midway/core';

/**
 * 返回的日期格式
 */
@Middleware()
export class BizCustomerMiddleware
  implements IMiddleware<Context, NextFunction>
{
  @Init()
  async init() {}

  resolve() {
    return async (ctx: Context, next: NextFunction) => {
      // console.log(ctx);

      await next();
    };
  }
}
